package com.xinhe.web.util;

import java.util.concurrent.*;

public class ThreadPoolUtil {
    public static final ThreadPoolExecutor THREAD_POOL_EXECUTOR = new ThreadPoolExecutor(100, 200, 60L, TimeUnit.SECONDS,
            new ArrayBlockingQueue<>(100000),Executors.defaultThreadFactory(), new ThreadPoolExecutor.AbortPolicy());
    public static final ScheduledThreadPoolExecutor SCHEDULED_THREAD_POOL_EXECUTOR = new ScheduledThreadPoolExecutor(100,
            Executors.defaultThreadFactory(), new ThreadPoolExecutor.AbortPolicy());
}
